<!--{template lyear:header_simple_start}-->
<!--{template lyear:header_simple_end}-->
<main class="bs-main-container">
	<div class="container-fluid">
		<div class="card">
			<div class="card-body">
			<!--{if $step==1}-->
			<form method="post" class="form-horizontal" action="{MOD_URL}&op=fileperms&step=2">
				<input name="formhash" value="{VERHASH}" type="hidden">
				<div class="mb-3">
					<label for="exampleFormControlInput1" class="form-label">主要检查文件及文件夹的写入权限，点击下面按钮开始进行检查</label>
				</div>
				<dl class="mb-3 d-grid">
					<input class="btn btn-primary btn-round bodyloading" name="confirmed" value="确定" type="submit">
				</dl>
			</form>
			<!--{elseif $step==2}-->
			<div class="text-center m-2">
				<h2 class="text-success ml20">正在进行文件权限检查，请稍候......</h2>
				<div class="progress">
					<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
				</div>
			</div>
			<dl class="mb-3 d-grid"><a href="{MOD_URL}&op=fileperms&step=3" class="btn btn-primary">{lang message_redirect}</a></dl>
			<script type="text/javascript">
				jQuery('.progress-bar').animate({ width: '100%' }, 2000, function() {
					window.location.href = '{MOD_URL}&op=fileperms&step=3';
				});
			</script>
			<!--{elseif $step==3}-->
			<!--{if $result}-->
			<div class="alert alert-warning d-flex align-items-center" role="alert">
				<i class="dzz dzz-error me-2 fs-5"></i>
				<div>如果某个文件或目录被检查到“无法写入”(以红色列出)，请通过 FTP 或其他工具修改其属性(例如设置为 777)，以确保站点功能的正常使用。</div>
			</div>
			<div class="alert alert-$alert d-flex align-items-center" role="alert">
				<i class="dzz dzz-error me-2 fs-5"></i>
				<div>$msg</div>
			</div>
			<ul class="list-group list-group-numbered">
			$result
			</ul>
			<!--{else}-->
			<div class="text-center">
				<img src="static/image/common/no_list.png" /><br>
				<span class="text-muted lead">{lang no_related_data}</span>
			</div>
			<!--{/if}-->
			<!--{/if}-->
			</div>
		</div>
	</div>
</main>
<!--{template lyear:footer_simple}-->